Page({
  onLoad() {
    this.getNotifyList()
  },
  async getNotifyList() {
    const { code, data } = await wx.http.get('/announcement')
    // console.log(data)
    if (code !== 10000) return wx.utils.toast()
    this.setData({
      notifyList: data
    })
  }
})
